import { IObject } from "@/types";

const LABELS: IObject = {
  Name: "名称",
  Price: "价格",
  Number: "数量",
  Detail: "详情",
  ImgUrl: "封面图片",
  Username: "用户名",
  Password: "密码",
  Telephone: "手机号",
  Address: "地址",
  Money: "余额",
  Status: "状态",
  Description: "描述",
  Content: "内容",
  About: "详细",
  OrderItems: "订单项",
  TransportID: "快递单号",
  CategoryID: "分类",
  UserID: "用户",
  OrderID: "订单",
  ProductID: "产品",
};

const statusName: any = {
  1: "待发货",
  2: "已发货",
  3: "已完成",
};

function replaceName(name: string): string {
  return LABELS[name] ?? name;
}

export { statusName, replaceName };
